<template>
	<view class="fixedhead">
		<view class="hiddenover" v-if="name!='抢购专区' && name!='体验专区' && name!='登录'"></view>
		<view class="head" :style="(name=='抢购专区' || name=='体验专区')?'background: transparent;':''">
			<view class="zezhao" v-if="name!='登录'" @click="history"></view>
			<view class="zezhao" v-if="name=='登录'" @click="backIndex"></view>
			<u-icon name="arrow-left" :color="name=='订单详情' || name=='体验专区' || name=='抢购专区'?'#fff':'#323232'" size="20"
			 v-if="name!='分类' && name!='我的' && name!='登录'"@click="history"></u-icon>
			<u-icon name="arrow-left" color="#323232" size="20"
			 v-else-if="name=='登录'" @click="backIndex"></u-icon>
			<u-icon class="icon" v-else></u-icon>
			<text :style="name=='门票购买' || name=='提现' || name==ptbname?'margin-left: 36rpx;':''" v-if="name!='抢购专区' && name!='体验专区' && name!='登录'">{{name}}</text>
			<text class="jiluziti" @click="toPage('/pages/personal/record?type=1')" v-if="name=='门票购买'">交易记录</text>
			<text class="jiluziti" @click="toPage('/pages/personal/record?type='+(Number(txtype)+3))" v-else-if="name=='提现'">提现记录</text>
			<text class="jiluziti" @click="toPage('/pages/personal/record?type=2')" v-else-if="name==ptbname">充值记录</text>
			<view class="qglp" v-else-if="name=='抢购专区'">
				<image src="/static/images/lingp.png"></image>
				<text>门票:{{membertoken}}</text>
			</view>
			<u-icon class="icon" v-else></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
		  return {
			  maskflag:false
		  };
		},
		onLoad () {

		},
		methods:{
			toPage(route){
				uni.navigateTo({
				    url: route
				});
			},
			history(){
				uni.navigateBack()
			},
			share(){
				this.maskflag=true
			},
			getMask(data){
				this.maskflag=data
			},
			backIndex(){
				uni.reLaunch({
					url: '/pages/index/index'
				});
			}
		},
		props:['name','membertoken','txtype','ptbname']
	}
</script>

<style scoped lang="scss">
	.fixedhead{
		.hiddenover{
		   margin-top: 160rpx;
		   /* #ifdef H5 */
		   margin-top: 0;
		   height: 88rpx;
		   /* #endif */
		}
		.head{
			position: fixed;
			width: 100%;
			background: #fff;
			display: flex;
			justify-content: space-between;
			/* #ifdef APP-PLUS */
			padding-top: 50rpx;
			/* #endif */
			z-index: 99;
			top: 0;
			left: 0;
			height: 110rpx;
			line-height: 120rpx;
			/* #ifdef H5 */
			height: 88rpx;
			line-height: 88rpx;
			/* #endif */
			.zezhao{
				position: absolute;
				width: 80rpx;
				height: 80rpx;
				left: 2%;
				top: 30%;
				z-index: 101;
			}
			.u-icon{
				width: 40rpx;
				height: 40rpx;
				margin: 42rpx 0 0 3%;
				/* #ifdef H5 */
				margin-top: 26rpx;
				/* #endif */
				&:last-of-type{
					width: 46rpx;
					height: 46rpx;
				}
			}
			text{
				font-size: 36rpx;
			}
			.jiluziti{
				font-size: 28rpx;
				margin-right: 3%;
			}
			.qglp{
				margin-right: 3%;
				image{
					width: 34rpx;
					height: 24rpx;
				}
				text{
					font-size: 26rpx;
					margin-left: 10rpx;
					color: #fff;
				}
			}
		}
	}
</style>
